package Second;

public class Circle {
	private int x;
	private int y;
	private double r;
	
	public Circle(int x,int y,double r) {
		this.x=x;
		this.y=y;
		this.r=r;
	}
	
	public double getArea(double r) {
		return Math.PI*r*r;
	}
	
	public boolean contains(Point P) {
		if(P.distance(x, y) < r) {
			return true;
		}
		else {
			return false;
		}
	}
	public boolean contains(int a,int b) {
		Point P=new Point(a,b);
		if(P.distance(x, y) < r) {
			return true;
		}
		else {
			return false;
		}
	}
	public String toString() {
		return "(("+x+","+y+"),"+r+")";
	}
}
